<template>
  <main>
    <h1>404 Not Found</h1>
    <h2 @click="router.push('/')">返回首页</h2>
  </main>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style lang="scss" scoped>
main {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: .3333rem;
  height: 25vh;
  font-size: .3333rem;
  text-align: center;

  h2 {
    border: .0167rem solid #000;
    border-radius: 5%;
    padding: .1667rem;
    cursor: pointer;
  }
}
</style>